<?php

require ("sharedResources.php");

$sid = '';
try {
    // We need a SID (session ID) in order to operate
	$sid = login ( 'admin', 'admin' );
	echo 'sid: ' . $sid . PHP_EOL;
    
    $wsParams = array('sid' => $sid);
    
    //$wsParams[] = $sid;
    print_r ( $wsParams );
    echo PHP_EOL;
    
    $result = $folderClient->listWorkspaces ( $wsParams );

    print_r ( $result );    
    
	//unset ( $folderClient );
} catch ( SoapFault $e ) {
	print_r ( $e );
}

// Always we need to logout in order to release connection slot
logout ( $sid );
?> 